<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');
class Userhandle_model extends MY_Model
{
    private $table ='userhandle';
	public function __construct()
	{
	    parent::__construct($this->table);
	
	}
	
	
	/**
	 *获取单条数据
	 * */
	public function getUserZanRow($userId=0,$listId=0,$flag=0,$type=0)
	{
	    $this->db->where('userId', $userId);
	    $this->db->where('listId', $listId);
	    $this->db->where('typeFlag',$type);
	    if($flag){
	        $this->db->where('flag',$flag);
	    }	    
	    $result = $this->db->get($this->table);
	    return $result->row_array();
	}
	
	
}
?>